<?php
    //查询会员
    header("Access-Control-Allow-Origin: *"); // 允许跨域的地址，* 表示全部
    header("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS"); // 允许的请求方法
    header("Access-Control-Allow-Headers: version, access-token, user-token"); // 允许的请求头属性

    include '../util/connect.php';

    $pageIndex = $_POST['pageIndex'];//页码
    $pageSize = 20;//页容量
    $Phone = $_POST['Phone'];//电话

    $start = ( $pageIndex - 1 ) * $pageSize;
    $sql = "select * from user where CONCAT(Phone,UserName)  like '%$Phone%' and Status = '0' ORDER BY Id DESC limit $start,20 " ;
    
    // $sql = "select * from user where Status = '0' ";
    $data = my_Select($sql);

    echo json_encode($data,JSON_UNESCAPED_UNICODE);